package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TReleaseTaskMapper;
import com.ruoyi.system.domain.TReleaseTask;
import com.ruoyi.system.service.ITReleaseTaskService;

/**
 * 发布任务Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-10-16
 */
@Service
public class TReleaseTaskServiceImpl implements ITReleaseTaskService 
{
    @Autowired
    private TReleaseTaskMapper tReleaseTaskMapper;

    /**
     * 查询发布任务
     * 
     * @param id 发布任务主键
     * @return 发布任务
     */
    @Override
    public TReleaseTask selectTReleaseTaskById(Long id)
    {
        return tReleaseTaskMapper.selectTReleaseTaskById(id);
    }

    /**
     * 查询发布任务列表
     * 
     * @param tReleaseTask 发布任务
     * @return 发布任务
     */
    @Override
    public List<TReleaseTask> selectTReleaseTaskList(TReleaseTask tReleaseTask)
    {
        return tReleaseTaskMapper.selectTReleaseTaskList(tReleaseTask);
    }

    /**
     * 新增发布任务
     * 
     * @param tReleaseTask 发布任务
     * @return 结果
     */
    @Override
    public int insertTReleaseTask(TReleaseTask tReleaseTask)
    {
        return tReleaseTaskMapper.insertTReleaseTask(tReleaseTask);
    }

    /**
     * 修改发布任务
     * 
     * @param tReleaseTask 发布任务
     * @return 结果
     */
    @Override
    public int updateTReleaseTask(TReleaseTask tReleaseTask)
    {
        return tReleaseTaskMapper.updateTReleaseTask(tReleaseTask);
    }

    /**
     * 批量删除发布任务
     * 
     * @param ids 需要删除的发布任务主键
     * @return 结果
     */
    @Override
    public int deleteTReleaseTaskByIds(Long[] ids)
    {
        return tReleaseTaskMapper.deleteTReleaseTaskByIds(ids);
    }

    /**
     * 删除发布任务信息
     * 
     * @param id 发布任务主键
     * @return 结果
     */
    @Override
    public int deleteTReleaseTaskById(Long id)
    {
        return tReleaseTaskMapper.deleteTReleaseTaskById(id);
    }
}
